package cn.xiyun.xiyuncc.domain;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiyun.maple
 * @since 2023-03-13
 */

@TableName("t_sms_blocking")
public class SmsBlocking extends Model<SmsBlocking> {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String ip;
    private String phone;
    @TableField("creation_time")
    private Date creationTime;

    public SmsBlocking(Long id, String ip, String phone, Date creationTime) {
        this.id = id;
        this.ip = ip;
        this.phone = phone;
        this.creationTime = creationTime;
    }

    public SmsBlocking() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SmsBlocking{" +
        ", id=" + id +
        ", ip=" + ip +
        ", phone=" + phone +
        ", creationTime=" + creationTime +
        "}";
    }
}
